﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="userstats.aspx.vb" Inherits="MyProject.WebForm10" %><%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Most popular content by views:<br />
        <asp:Chart ID="Chart1" runat="server" DataSourceID="AccessDataSource1">
            <series>
                <asp:Series ChartType="Bar" Name="Series1" XValueMember="ItemName" 
                    YValueMembers="Itemsviewed_ID">
                </asp:Series>
            </series>
            <chartareas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </chartareas>
        </asp:Chart>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" 
            DataFile="~/App_Data/AssignmentDB.accdb" 
            SelectCommand="SELECT [ItemName], [Itemsviewed_ID] FROM [ItemsviewedQuery] ORDER BY [Itemsviewed_ID]">
        </asp:AccessDataSource>
    </p>
    <p>
        Most popular content by Country:</p>
    <p>
        <asp:Chart ID="Chart2" runat="server" DataSourceID="AccessDataSource2">
            <series>
                <asp:Series ChartType="Pie" Name="Series1" XValueMember="Country" 
                    YValueMembers="CountOfID">
                </asp:Series>
            </series>
            <chartareas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </chartareas>
        </asp:Chart>
        <asp:AccessDataSource ID="AccessDataSource2" runat="server" 
            DataFile="~/App_Data/AssignmentDB.accdb" 
            SelectCommand="SELECT [Country], [CountOfID] FROM [itemsviewedbycountry] ORDER BY [CountOfID]">
        </asp:AccessDataSource>
    </p>
    <p>
    </p>
</asp:Content>
